package com.springclouddemo.service.user.service.impl;

import com.springclouddemo.common.domain.User;
import com.springclouddemo.service.user.repo.UserRepository;
import com.springclouddemo.service.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//@Service("userService")
@Service
public class UserServiceImpl implements UserService {

    //@Resource(name = "userRepository")
    @Autowired
    private UserRepository userRepository;

    @Override
    public User findById(int userId) {
        return userRepository.findById(userId);
    }
}
